﻿CREATE TABLE [dbo].[MIAP_PERFIL_URL_PERFIL] (
    [ID_PERFIL_URL]    INT           NOT NULL,
    [ID_PERFIL]        INT           NOT NULL,
    [USUARIO_CREACION] NVARCHAR (50) NOT NULL,
    [FECHA_CREACION]   DATETIME      NOT NULL,
    CONSTRAINT [PK_MIAP_PERFIL_URL_PERFIL] PRIMARY KEY CLUSTERED ([ID_PERFIL_URL] ASC, [ID_PERFIL] ASC),
    CONSTRAINT [FK_MIAP_PERFIL_URL_PERFIL_MIAP_PERFIL] FOREIGN KEY ([ID_PERFIL]) REFERENCES [dbo].[MIAP_PERFIL] ([ID_PERFIL]),
    CONSTRAINT [FK_MIAP_PERFIL_URL_PERFIL_MIAP_PERFIL_URL] FOREIGN KEY ([ID_PERFIL_URL]) REFERENCES [dbo].[MIAP_PERFIL_URL] ([ID_PERFIL_URL])
);

